package com.ngmaster.socket.handler;



import com.ngmaster.socket.MessageHandler;
import com.ngmaster.socket.message.ForceWashMessage;
import com.ngmaster.socket.message.SyncDayMessage;
import com.ngmaster.socket.message.SyncWaterMessage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 用时同步消息应答
 * */
@Slf4j
@Component
public class ReceiveSyncUsedTimeHandler extends MessageHandler<SyncDayMessage> {

    @Override
    public boolean handleMessage(SyncDayMessage protocolMessage) {
        log.info("[ReceiveSyncUsedTimeHandler] [receive] [msg:{}]", protocolMessage);
        this.sendCmdQueryDeviceInfo(protocolMessage);
        return true;
    }
}
